﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;

namespace DLM.Web.ViewModel
{
    public class ResetPasswordPageView
    {
        public string Code { get; set; }

        [Required(ErrorMessage = "密码不能为空")]
        [RegularExpression(@"^(\S+){6,18}$", ErrorMessage = "密码允许6-18位的字符")]
        public string Password { get; set; }

        [Required(ErrorMessage = "密码不能为空")]
        [RegularExpression(@"^(\S+){6,18}$", ErrorMessage = "密码允许6-18位的字符")]
        [Compare("Password", ErrorMessage = "请确认两次输入的密码一致")]
        public string ConfirmedPassword { get; set; }
    }
}
